from selenium.webdriver.common.by import By
import time
from common.base import Base
from common.function import open_browser
from page.login_page1 import Login_Page


class Login_Index(Base):
    def index_username(self):
        a = self.elelocate((By.CLASS_NAME, 'f4_b')).text
        return a

    def quit_login(self):
        self.elelocate((By.LINK_TEXT,'退出')).click()


if __name__ == '__main__':
    driver = open_browser()
    li = Login_Index(driver)
    li.index_username()
    li.quit()
